﻿using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;

public class FireballEffectSystem : EffectSystem
{
    protected override void SetupByProNumber()
    {
        Mana = 1 - ProNumber;
        damageA = 22+ ProNumber * 18;
        Description = $"选择一个目标，造成{damageA}点伤害。";
    }
    private int damageA;

    public override Effect ManualTargetEffect => new DealDamageEffect() { damageAmount = damageA };
    // protected override void Awake()
    // {
    //     base.Awake();
    //     if (cardView.card.ProNumber == 1)
    //     {
    //         cardView.title.color = Color.green; // 设置标题颜色为绿色
    //         cardView.card.Mana = 0;
    //     }

    // }
    // public override bool IsSpecialManualTarget => true;
    // public override void ManualTargetSpecial()
    // {
    //    
    //         var targets = new List<CombatantView> { specialManualTarget };
    //         DealDamageGA ga = new DealDamageGA(2, targets);
    //         ActionSystem.Instance.AddReaction(ga);
    // 
    // }
}